package com.jxpanda.spring.module.wechat.component.message.pojo.general;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.jxpanda.spring.module.wechat.component.message.pojo.MsgType;
import com.jxpanda.spring.module.wechat.component.message.pojo.WechatMessage;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.SuperBuilder;

@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@Data
public class WechatVideoMessage extends WechatMessage {

    @JsonProperty("video")
    private Video video;

    @Override
    public String getMsgType() {
        return MsgType.VIDEO.getValue();
    }

    @Data
    public static class Video {
        /**
         * 媒体文件ID
         */
        @JsonProperty("media_id")
        private String mediaId;

        /**
         * 视频消息的标题
         */
        @JsonProperty("title")
        private String title;

        /**
         * 视频消息的描述
         */
        @JsonProperty("description")
        private String description;
    }
}
